package com.eshop.tools.service.dto;

import java.sql.Timestamp;
import java.util.List;
import com.eshop.annotation.Query;

public class QiniuQueryCriteria
{
    @Query(type = Query.Type.INNER_LIKE)
    private String name;
    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;
    
    public String getName() {
        return this.name;
    }
    
    public List<Timestamp> getCreateTime() {
        return this.createTime;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setCreateTime(final List<Timestamp> createTime) {
        this.createTime = createTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof QiniuQueryCriteria)) {
            return false;
        }
        final QiniuQueryCriteria other = (QiniuQueryCriteria)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0065: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0065;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof QiniuQueryCriteria;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "QiniuQueryCriteria(name=" + this.getName() + ", createTime=" + this.getCreateTime() + ")";
    }
}
